package com.loghead.view
{
	import com.loghead.interfaces.ITextViewer;
	
	import flash.display.InteractiveObject;
	import flash.text.TextField;
	
	import mx.flash.UIMovieClip;

	public class TextFieldViewer extends UIMovieClip implements ITextViewer
	{
		private var _textField:TextField;
		
		public function TextFieldViewer()
		{
			super();
			_textField = new TextField();
			addChild( _textField );
		}
		
		public function get text():String
		{
			return null;
		}
		
		public function set text(newVal:String):void
		{
		}
		
		public function getTextByLine(line:int):String
		{
			return null;
		}
		
		public function removeTextByLine(line:int):void
		{
			
		}
		
		public function insertTextAtLine(text:String, line:int=0):void
		{
		}
		
		public function get view():InteractiveObject
		{
			return null;
		}
		
		public function addHtmlLine(html:String):void
		{
		}
		
		public function updateScroll():void
		{
			
		}
		
		public function highlightText( target:String ):void
		{
			
		}
		
		public function setSelection( beginIndex:int, endIndex:int ):void
		{
			
		}
		
		public function get length():int
		{
			return _textField.length;
		}
		
		public function refreshView():void
		{
			
		}
		
		public function getLineIndexOfChar( charIndex:int ):int
		{
			return _textField.getLineIndexOfChar( charIndex );
		}
		
		public function getLineLength( lineIndex:int ):int
		{
			return _textField.getLineLength( lineIndex );
		}
		
		// autoScrollEnabled getter
		public function get autoScrollEnabled():Boolean  { return false }
		
		// autoScrollEnabled setter
		public function set autoScrollEnabled( newVal:Boolean ):void  
		{ 
			//_autoScrollEnabled = newVal; 
			//updateScroll();
		}
	}
}